.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.app-container {
  min-height: 100vh;
}

.right-layout {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #f0f0f0;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #f0f2f5;
}

.content-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.content-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 180px);
}

.object-sider {
  background: #fff;
  border-right: 1px solid #f0f0f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.object-search {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.object-search .ant-input-search {
  width: 100%;
}

.content-body {
  flex: 1;
  overflow: auto;
}

/* Header styles */
.header {
  padding: 0 24px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  height: 64px;
  line-height: 64px;
}

.header-left {
  display: flex;
  align-items: center;
}

.database-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  font-size: 20px;
}

.header-title {
  font-size: 18px;
  margin-left: 12px;
  font-weight: 500;
}

.trigger-button {
  font-size: 18px;
  padding: 0 12px;
  height: 64px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

/* Section title */
.section-title {
  height: 40px;
  line-height: 40px;
  padding-left: 24px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}

/* Right menu styles */
.right-menu {
  border-bottom: 1px solid #f0f0f0;
  margin-top: 8px;
}

.right-menu.ant-menu-horizontal {
  line-height: 40px;
}

.right-menu.ant-menu-horizontal > .ant-menu-item,
.right-menu.ant-menu-horizontal > .ant-menu-submenu {
  padding: 0 20px;
  margin: 0 !important;
}

.right-menu.ant-menu-horizontal > .ant-menu-item::after,
.right-menu.ant-menu-horizontal > .ant-menu-submenu::after {
  left: 20px;
  right: 20px;
}

/* Dropdown menu styles */
.right-menu .ant-menu-submenu-popup {
  min-width: 160px;
}

.right-menu .ant-menu-submenu-popup .ant-menu-item {
  padding: 8px 16px;
}

/* Placeholder content */
.placeholder-content {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

/* Main content tabs */
.main-tabs {
  background: #fff;
  padding: 16px;
  border-radius: 4px;
}

.main-tabs .ant-tabs-nav {
  margin-bottom: 16px;
}

/* Sider styles */
.logo-section {
  height: 48px;
  padding: 0 12px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.logo-text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.88);
}

.logo-actions {
  display: flex;
  gap: 4px;
}

.logo-actions .ant-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sider-search {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.search-input {
  width: 100%;
}

/* Left menu styles */
.left-menu {
  border-bottom: 1px solid #f0f0f0;
}

.left-menu.ant-menu-horizontal {
  line-height: 40px;
}

.left-menu.ant-menu-horizontal > .ant-menu-item,
.left-menu.ant-menu-horizontal > .ant-menu-submenu {
  padding: 0 20px;
  margin: 0 !important;
}

.left-menu.ant-menu-horizontal > .ant-menu-item::after,
.left-menu.ant-menu-horizontal > .ant-menu-submenu::after {
  left: 20px;
  right: 20px;
}

/* Menu item styles */
.menu-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
}

.menu-item-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.menu-item-icon {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
}

.menu-item-text {
  flex: 1;
  min-width: 0;
}

.menu-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.menu-item-label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item-description {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item-arrow {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.25);
  margin-left: 8px;
}

/* Custom menu styles */
.custom-menu {
  border-right: none !important;
  flex: 1;
  overflow-y: auto;
}

.custom-menu .ant-menu-item {
  height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 4px 16px !important;
}

.custom-menu .ant-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.custom-menu .ant-menu-item:hover .menu-item-arrow {
  color: rgba(0, 0, 0, 0.45);
}

.custom-menu .ant-menu-item-selected {
  background-color: #e6f4ff !important;
}

.custom-menu .ant-menu-item-selected .menu-item-icon,
.custom-menu .ant-menu-item-selected .menu-item-label,
.custom-menu .ant-menu-item-selected .menu-item-arrow {
  color: #1890ff;
}

/* Second sider */
.second-sider {
  border-right: 1px solid #f0f0f0;
  height: calc(100vh - 48px);
  overflow-y: auto;
}

/* Remove default styles */
.App-logo {
  display: none;
}

.App-header {
  display: none;
}
